import request from '@/utils/request'

// 查询老人家庭联系列表
export function listElderFamilies(query) {
  return request({
    url: '/business/elderFamilies/list',
    method: 'get',
    params: query
  })
}

// 查询老人家庭联系详细
export function getElderFamilies(id) {
  return request({
    url: '/business/elderFamilies/' + id,
    method: 'get'
  })
}

// 新增老人家庭联系
export function addElderFamilies(data) {
  return request({
    url: '/business/elderFamilies',
    method: 'post',
    data: data
  })
}

// 修改老人家庭联系
export function updateElderFamilies(data) {
  return request({
    url: '/business/elderFamilies',
    method: 'put',
    data: data
  })
}

// 删除老人家庭联系
export function delElderFamilies(id) {
  return request({
    url: '/business/elderFamilies/' + id,
    method: 'delete'
  })
}
